<template>
  <div class="evaluate">
    <div class="count">
      <div class="star">
        <span>评分</span>
        <van-rate
          size="0.3rem"
          color="#ffd21e"
          void-icon="star"
          void-color="#aaaaaa"
        />
      </div>
      <div class="reputation">
        <span>0.00%</span>
        <span>好评率</span>
      </div>
    </div>
    <van-empty description="暂无更多评价" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      evaluateDate: null,
    };
  },
  created() {
    this.axios
      .get(`/api/reply/list/${this.$route.query.id}?page=1&limit=8&type=0`)
      .then((response) => {
        this.evaluateDate = response.data.data;
      });
  },
};
</script>

<style lang="less">
.evaluate {
  width: 100%;
  height: 60px;
  background-color: #f5f5f5;
  padding: 0 15px;
  .count {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .star {
      span {
        color: red;
        margin-right: 5px;
        vertical-align: 1px;
      }
    }
    .reputation {
      span {
        &:nth-child(1) {
          color: red;
        }
        &:nth-child(2) {
          color: #808080;
        }
      }
    }
  }
}
</style>